package fem2.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

abstract class NumberTextFieldListenerAdapter implements ChangeListener,
        ActionListener {

    @Override
	public void actionPerformed(ActionEvent e) {
        apply();
    }

    protected abstract void apply();

    @Override
	public void stateChanged(ChangeEvent e) {
        apply();
    }

}